<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<style>
ul {
	list-style: none;
}
li{
	float: left;
}
</style>
<pg:pager items="${param.items }" maxPageItems="${param.size }"
	export="curPage=pageNumber"  url="${param.url}">
	<pg:param name="pager.size" value="${param.size }" />
	<div>
		<ul>
			<li>
			<pg:last>
			共<i>${param.items }</i>条记录,共${pageNumber}页,
			</pg:last>
			当前显示第&nbsp;<i class=""><%=curPage%>&nbsp;</i>页
			</li>
			<li><pg:first>
					<a href="<%=pageUrl%>"> <span class="">首页</span> </a>
				</pg:first>
			</li>
			<li><pg:prev>
					<a href="<%=pageUrl%>"><span >上一页</span></a>
				</pg:prev></li>
			<pg:pages>
				<%
					if (curPage == pageNumber) {
				%>
				<li class=""><a href="<%=pageUrl%>"><%=pageNumber%></a></li>
				<%
					} else {
				%>
				<li class=""><a href="<%=pageUrl%>"><%=pageNumber%></a></li>
				<%
					}
				%>
			</pg:pages>
			<li><pg:next>
					<a href="<%=pageUrl%>"><span>下一页</span> </a>
				</pg:next></li>
				
			<li><pg:last>
					<a href="<%=pageUrl%>"> <span>尾页</span> </a>
				</pg:last>
			</li>
		</ul>
	</div>
</pg:pager>